<template>
  <div id="" class="paT55">
    <router-view/>
    <Suspension @switchRouter="switchRouter" :selection-index="this.$route.meta.selectionIndex"></Suspension>
  </div>
</template>

<script>
import Suspension from '../../../components/Suspension'
export default {
  name: 'index',
  components: {
    Suspension
  },
  mounted () {

  },
  methods: {
    switchRouter () {
      if (this.$route.meta.selectionIndex === 0) {
        this.$router.push('/distinguish/distinguishData')
      } else {
        this.$router.push('/distinguish/distinguishView')
      }
    }
  }
}
</script>
